#include			"UdpServer.h"

UdpServer::UdpServer(Async & async, PacketHandler * handler) : _socket(async.getService()), _broadcast(async.getService())
{
	_socket.setHandler(handler);
}

UdpServer::~UdpServer()
{

}

void				UdpServer::start()
{
	_socket.start();
	_broadcast.start();
}